package net.yondervision.hrfsp.sdk.esign.domain.request;

import cn.hutool.http.Method;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import net.yondervision.hrfsp.sdk.esign.domain.AbstractESignRequest;
import net.yondervision.hrfsp.sdk.esign.domain.ESignRequest;
import net.yondervision.hrfsp.sdk.esign.domain.request.body.IdentityAuthPubOrganizationVerifyRandomAmountParamBody;
import net.yondervision.hrfsp.sdk.esign.domain.request.path.IdentityAuthPubOrganizationVerifyRandomAmountParamPath;
import net.yondervision.hrfsp.sdk.esign.domain.response.IdentityAuthPubOrganizationVerifyRandomAmountResponse;

/**
 * @author Cash Zhang
 * @version v1.0
 * @since 2019/10/08 13:59
 */
@Data
@Builder
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class IdentityAuthPubOrganizationVerifyRandomAmountRequest extends
    AbstractESignRequest implements
    ESignRequest<IdentityAuthPubOrganizationVerifyRandomAmountResponse> {

  private IdentityAuthPubOrganizationVerifyRandomAmountParamPath identityAuthPubOrganizationVerifyRandomAmountParamPath;
  private IdentityAuthPubOrganizationVerifyRandomAmountParamBody identityAuthPubOrganizationVerifyRandomAmountParamBody;

  public IdentityAuthPubOrganizationVerifyRandomAmountRequest(
      IdentityAuthPubOrganizationVerifyRandomAmountParamPath identityAuthPubOrganizationVerifyRandomAmountParamPath,
      IdentityAuthPubOrganizationVerifyRandomAmountParamBody identityAuthPubOrganizationVerifyRandomAmountParamBody) {
    this.identityAuthPubOrganizationVerifyRandomAmountParamPath = identityAuthPubOrganizationVerifyRandomAmountParamPath;
    this.identityAuthPubOrganizationVerifyRandomAmountParamBody = identityAuthPubOrganizationVerifyRandomAmountParamBody;
    this.setParamPath(identityAuthPubOrganizationVerifyRandomAmountParamPath);
    this.setParamBody(identityAuthPubOrganizationVerifyRandomAmountParamBody);
  }

  @Override
  public String getVersion() {
    return "v2";
  }

  @Override
  public String getUrl() {
    return "/identity/auth/pub/organization/{flowId}/verifyRandomAmount";
  }

  @Override
  public Method getMethodType() {
    return Method.PUT;
  }

  @Override
  public Class<IdentityAuthPubOrganizationVerifyRandomAmountResponse> getResponseClass() {
    return IdentityAuthPubOrganizationVerifyRandomAmountResponse.class;
  }

}
